﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="AddProperty.aspx.cs" Inherits="AddProperty" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">

<style type="text/css">
        .style1
        {
            font-family: "Segoe UI";
            font-weight: bold;
        }
    .style2
    {
        font-family: "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, Sans-Serif;
        font-size: 13px;
    }
    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

<%--<table id="loginLinkContainer" style="width:100%">
<tr>
<td style="width:50%" align="left">
    Welcome <asp:Label ID="lblUserName" runat="server"></asp:Label>
&nbsp;!</td>
<td style="width:50%" align="right">
    <asp:HyperLink ID="hyplogin" runat="server" Text="Log Out" NavigateUrl="~/Home.aspx"></asp:HyperLink>
</td>
</tr>
</table>--%>

<table id="mainTable" style="width:100%;">
<tr>
    <td style="width:15%" valign="top">
    <table style="width:100%" >
        <tr>
            <td valign="top" align="left"  style="width:20%">
                <!--Navigation menu items-->
                <div id="sidebar" >
 			    <h1 class="style7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ACTION ITEMS</h1>
			    <div class="left-box">
				    <ul class="sidemenu">
                       <li><a href="AdminViewProperty.aspx" class="underline">&gt; View Property</a></li>
                        <li><a href="AddProperty.aspx" class="underline">&gt; Add Property</a></li>
                        <li><a href="AdminViewSeminar.aspx" class="underline">&gt; View Seminar</a></li>
                        <li><a href="AddSeminar.aspx" class="underline">&gt; Add Seminar</a></li>
                        <li><a href="AdminUpdateSeminar.aspx" class="underline">&gt; Update Seminar</a></li>
                    </ul>
			    </div>
		     </div>
            </td>

            <!--Border Adjustment-->
            <td style="width:80%" class="tablebordercolor">
            <table style="width:100%" class="tablebordercolor">
            <tr valign="top">
            <td style="width:34%"></td>
            
            <td style="width:31%" align="center">
                <h1 class="style1">Add Property </h1>
            </td>
            
            <td style="width:35%"></td>
            </tr>
             </table>
            
                <br />
            
            <table style="width:100%" id="summarytable">
                <tr>
                    <td style="width:40%" align="right" class="style2">
                        Property Type</td>
                    <td style="width:3%">
                    </td>
                    <td style="width:57%">
                        <asp:DropDownList ID="ddlPropertyType" runat="server" Width="176px">
                            <asp:ListItem Value="HDB"></asp:ListItem>
                            <asp:ListItem Value="Condominium"></asp:ListItem>
                            <asp:ListItem Value="Flat"></asp:ListItem>
                            <asp:ListItem Value="Others"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td><br /></td>
                    <td><br /></td>
                </tr>
                <tr>
                    <td style="width:40%" align="right" class="style2">
                        Transaction Type</td>
                    <td style="width:3%">
                    </td>
                    <td style="width:57%">
                        <asp:TextBox ID="txtTransactionType" runat="server"  Width="176px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvTransactionType" runat="server" 
                            ControlToValidate="txtTransactionType" ErrorMessage="Required" 
                            ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                 <tr>
                    <td><br /></td>
                    <td><br /></td>
                </tr>

                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Rooms</td>
                    <td style="width:3%">
                    </td>
                    <td style="width:57%">
                        <asp:TextBox ID="txtRooms" runat="server" Width="176px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvRooms" runat="server" 
                            ControlToValidate="txtRooms" ErrorMessage="Required" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                 <tr>
                    <td><br /></td>
                    <td><br /></td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Concourse</td>
                    <td style="width:3%">
                    </td>
                    <td style="width:57%">
                        <asp:RadioButtonList ID="rblstConcourse" runat="server" Width="176px" 
                            CssClass="style2">
                            <asp:ListItem Selected="True" Value="Available"></asp:ListItem>
                            <asp:ListItem Value="Not Available"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                 <tr>
                    <td><br /></td>
                    <td><br /></td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Swimming Pool</td>
                    <td style="width:3%">
                    </td>
                    <td style="width:57%">
                        <asp:RadioButtonList ID="rblstSwimmingPool" runat="server" Width="176px" 
                            CssClass="style2">
                            <asp:ListItem Selected="True" Value="Available"></asp:ListItem>
                            <asp:ListItem Value="Not Available"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                 <tr>
                    <td><br /></td>
                    <td><br /></td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Car Parking</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        <asp:RadioButtonList ID="rblstcarParking" runat="server" Width="176px" 
                            CssClass="style2">
                            <asp:ListItem Selected="True" Value="Available"></asp:ListItem>
                            <asp:ListItem Value="Not Available"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right">
                        &nbsp;</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Gym</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        <asp:RadioButtonList ID="rblstGym" runat="server" Width="176px" 
                            CssClass="style2">
                            <asp:ListItem Selected="True" Value="Available"></asp:ListItem>
                            <asp:ListItem Value="Not Available"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right">
                        &nbsp;</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Playground</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        <asp:RadioButtonList ID="rblstPlayground" runat="server" Width="176px" 
                            CssClass="style2">
                            <asp:ListItem Selected="True" Value="Available"></asp:ListItem>
                            <asp:ListItem Value="Not Available"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right">
                        &nbsp;</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Cost</td>
                    <td style="width:3%">
                    </td>
                    <td style="width:57%">
                        <asp:TextBox ID="txtCost" runat="server" Width="176px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvCost" runat="server" 
                            ControlToValidate="txtCost" ErrorMessage="Required" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="regexCost" runat="server" 
                            ControlToValidate="txtCost" ErrorMessage="Invalid format" ForeColor="Red" 
                            ValidationExpression="\d+"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                 <tr>
                    <td><br /></td>
                    <td><br /></td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Owner</td>
                    <td style="width:3%">
                    </td>
                    <td style="width:57%">
                        <asp:TextBox ID="txtOwner" runat="server" Width="176px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvOwner" runat="server" 
                            ControlToValidate="txtOwner" ErrorMessage="Required" ForeColor="Red"></asp:RequiredFieldValidator>
                     </td>
                </tr>
                 <tr>
                    <td><br /></td>
                    <td><br /></td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Agent Name</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        <asp:TextBox ID="txtagentName" runat="server" Width="176px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvagentName" runat="server" 
                            ControlToValidate="txtagentName" ErrorMessage="Required" ForeColor="Red"></asp:RequiredFieldValidator>
                     </td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right">
                        &nbsp;</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Agent Contact Number</td>
                    <td style="width:3%">
                    </td>
                    <td style="width:57%">
                        <asp:TextBox ID="txtAgentContactNumber" runat="server" Width="176px"></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="rfvAgentContactNumber" runat="server" 
                            ControlToValidate="txtAgentContactNumber" ErrorMessage="Required" 
                            ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="regexAgentContactNumber" runat="server" 
                            ControlToValidate="txtAgentContactNumber" ErrorMessage="Invalid Format" 
                            ForeColor="Red" ValidationExpression="\d+"></asp:RegularExpressionValidator>
                     </td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right">
                        &nbsp;</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Full Address</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        <asp:TextBox ID="txtFullAddress" runat="server" TextMode="MultiLine" 
                            Width="176px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvFullAddress" runat="server" 
                            ControlToValidate="txtFullAddress" ErrorMessage="Required" ForeColor="Red"></asp:RequiredFieldValidator>
                     </td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right">
                        &nbsp;</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td style="width:40%" align="right" class="style2">
                        Nearest MRT</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        <asp:TextBox ID="txtNearestMRT" runat="server" Width="176px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvNearestMRT" runat="server" 
                            ControlToValidate="txtNearestMRT" ErrorMessage="Required" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                 
                 <tr>
                    <td style="width:40%" align="right">
                        &nbsp;</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        &nbsp;</td>
                </tr>
                 
                 <tr>
                    <td style="width:40%" align="right">
                        &nbsp;</td>
                    <td style="width:3%">
                        &nbsp;</td>
                    <td style="width:57%">
                        <asp:Button ID="btnAddProperty" runat="server"  
                            Text="Add Property" onclick="btnAddProperty_Click"  />
                     </td>
                </tr>
            </table> 
            </td>
            
        </tr>
       
    </table>
    </td>
</tr>
</table>

</asp:Content>

